home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 April: Mac OS SDK / Dev.CD Apr 99 SDK1.toast / Development Kits / Interfaces&Libraries / Universal / Interfaces / AIncludes / Errors.a < prev    next >
Encoding:
Text File  |  1998-08-17  |  70.1 KB  |  1,427 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Errors.a
  3. ;
  4. ;    Contains:    OSErr codes.
  5. ;
  6. ;    Version:    Technology:    Mac OS 8
  7. ;                Release:    Universal Interfaces 3.2
  8. ;
  9. ;    Copyright:    © 1985-1998 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        For bug reports, consult the following page on
  12. ;                the World Wide Web:
  13. ;
  14. ;                    http://developer.apple.com/bugreporter/
  15. ;
  16. ;
  17.     IF &TYPE('__ERRORS__') = 'UNDEFINED' THEN
  18. __ERRORS__ SET 1
  19.  
  20.     IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
  21.     include 'ConditionalMacros.a'
  22.     ENDIF
  23.  
  24.  
  25. paramErr                        EQU        -50                    ;error in user parameter list
  26. noHardwareErr                    EQU        -200                ;Sound Manager Error Returns
  27. notEnoughHardwareErr            EQU        -201                ;Sound Manager Error Returns
  28. userCanceledErr                    EQU        -128
  29. qErr                            EQU        -1                    ;queue element not found during deletion
  30. vTypErr                            EQU        -2                    ;invalid queue element
  31. corErr                            EQU        -3                    ;core routine number out of range
  32. unimpErr                        EQU        -4                    ;unimplemented core routine
  33. SlpTypeErr                        EQU        -5                    ;invalid queue element
  34. seNoDB                            EQU        -8                    ;no debugger installed to handle debugger command
  35. controlErr                        EQU        -17                    ;I/O System Errors
  36. statusErr                        EQU        -18                    ;I/O System Errors
  37. readErr                            EQU        -19                    ;I/O System Errors
  38. writErr                            EQU        -20                    ;I/O System Errors
  39. badUnitErr                        EQU        -21                    ;I/O System Errors
  40. unitEmptyErr                    EQU        -22                    ;I/O System Errors
  41. openErr                            EQU        -23                    ;I/O System Errors
  42. closErr                            EQU        -24                    ;I/O System Errors
  43. dRemovErr                        EQU        -25                    ;tried to remove an open driver
  44. dInstErr                        EQU        -26                    ;DrvrInstall couldn't find driver in resources
  45.  
  46. abortErr                        EQU        -27                    ;IO call aborted by KillIO
  47. iIOAbortErr                        EQU        -27                    ;IO abort error (Printing Manager)
  48. notOpenErr                        EQU        -28                    ;Couldn't rd/wr/ctl/sts cause driver not opened
  49. unitTblFullErr                    EQU        -29                    ;unit table has no more entries
  50. dceExtErr                        EQU        -30                    ;dce extension error
  51. slotNumErr                        EQU        -360                ;invalid slot # error
  52. gcrOnMFMErr                        EQU        -400                ;gcr format on high density media error
  53. dirFulErr                        EQU        -33                    ;Directory full
  54. dskFulErr                        EQU        -34                    ;disk full
  55. nsvErr                            EQU        -35                    ;no such volume
  56. ioErr                            EQU        -36                    ;I/O error (bummers)
  57. bdNamErr                        EQU        -37                    ;there may be no bad names in the final system!
  58. fnOpnErr                        EQU        -38                    ;File not open
  59. eofErr                            EQU        -39                    ;End of file
  60. posErr                            EQU        -40                    ;tried to position to before start of file (r/w)
  61. mFulErr                            EQU        -41                    ;memory full (open) or file won't fit (load)
  62. tmfoErr                            EQU        -42                    ;too many files open
  63. fnfErr                            EQU        -43                    ;File not found
  64. wPrErr                            EQU        -44                    ;diskette is write protected.
  65. fLckdErr                        EQU        -45                    ;file is locked
  66.  
  67. vLckdErr                        EQU        -46                    ;volume is locked
  68. fBsyErr                            EQU        -47                    ;File is busy (delete)
  69. dupFNErr                        EQU        -48                    ;duplicate filename (rename)
  70. opWrErr                            EQU        -49                    ;file already open with with write permission
  71. rfNumErr                        EQU        -51                    ;refnum error
  72. gfpErr                            EQU        -52                    ;get file position error
  73. volOffLinErr                    EQU        -53                    ;volume not on line error (was Ejected)
  74. permErr                            EQU        -54                    ;permissions error (on file open)
  75. volOnLinErr                        EQU        -55                    ;drive volume already on-line at MountVol
  76. nsDrvErr                        EQU        -56                    ;no such drive (tried to mount a bad drive num)
  77. noMacDskErr                        EQU        -57                    ;not a mac diskette (sig bytes are wrong)
  78. extFSErr                        EQU        -58                    ;volume in question belongs to an external fs
  79. fsRnErr                            EQU        -59                    ;file system internal error:during rename the old entry was deleted but could not be restored.
  80. badMDBErr                        EQU        -60                    ;bad master directory block
  81. wrPermErr                        EQU        -61                    ;write permissions error
  82. dirNFErr                        EQU        -120                ;Directory not found
  83. tmwdoErr                        EQU        -121                ;No free WDCB available
  84. badMovErr                        EQU        -122                ;Move into offspring error
  85. wrgVolTypErr                    EQU        -123                ;Wrong volume type error [operation not supported for MFS]
  86. volGoneErr                        EQU        -124                ;Server volume has been disconnected.
  87.  
  88. fidNotFound                        EQU        -1300                ;no file thread exists.
  89. fidExists                        EQU        -1301                ;file id already exists
  90. notAFileErr                        EQU        -1302                ;directory specified
  91. diffVolErr                        EQU        -1303                ;files on different volumes
  92. catChangedErr                    EQU        -1304                ;the catalog has been modified
  93. desktopDamagedErr                EQU        -1305                ;desktop database files are corrupted
  94. sameFileErr                        EQU        -1306                ;can't exchange a file with itself
  95. badFidErr                        EQU        -1307                ;file id is dangling or doesn't match with the file number
  96. notARemountErr                    EQU        -1308                ;when _Mount allows only remounts and doesn't get one
  97. fileBoundsErr                    EQU        -1309                ;file's EOF, offset, mark or size is too big
  98. fsDataTooBigErr                    EQU        -1310                ;file or volume is too big for system
  99. volVMBusyErr                    EQU        -1311                ;can't eject because volume is in use by VM
  100. envNotPresent                    EQU        -5500                ;returned by glue.
  101. envBadVers                        EQU        -5501                ;Version non-positive
  102. envVersTooBig                    EQU        -5502                ;Version bigger than call can handle
  103. fontDecError                    EQU        -64                    ;error during font declaration
  104. fontNotDeclared                    EQU        -65                    ;font not declared
  105. fontSubErr                        EQU        -66                    ;font substitution occured
  106. fontNotOutlineErr                EQU        -32615                ;bitmap font passed to routine that does outlines only
  107. firstDskErr                        EQU        -84                    ;I/O System Errors
  108. lastDskErr                        EQU        -64                    ;I/O System Errors
  109. noDriveErr                        EQU        -64                    ;drive not installed
  110. offLinErr                        EQU        -65                    ;r/w requested for an off-line drive
  111. noNybErr                        EQU        -66                    ;couldn't find 5 nybbles in 200 tries
  112.  
  113. noAdrMkErr                        EQU        -67                    ;couldn't find valid addr mark
  114. dataVerErr                        EQU        -68                    ;read verify compare failed
  115. badCksmErr                        EQU        -69                    ;addr mark checksum didn't check
  116. badBtSlpErr                        EQU        -70                    ;bad addr mark bit slip nibbles
  117. noDtaMkErr                        EQU        -71                    ;couldn't find a data mark header
  118. badDCksum                        EQU        -72                    ;bad data mark checksum
  119. badDBtSlp                        EQU        -73                    ;bad data mark bit slip nibbles
  120. wrUnderrun                        EQU        -74                    ;write underrun occurred
  121. cantStepErr                        EQU        -75                    ;step handshake failed
  122. tk0BadErr                        EQU        -76                    ;track 0 detect doesn't change
  123. initIWMErr                        EQU        -77                    ;unable to initialize IWM
  124. twoSideErr                        EQU        -78                    ;tried to read 2nd side on a 1-sided drive
  125. spdAdjErr                        EQU        -79                    ;unable to correctly adjust disk speed
  126. seekErr                            EQU        -80                    ;track number wrong on address mark
  127. sectNFErr                        EQU        -81                    ;sector number never found on a track
  128. fmt1Err                            EQU        -82                    ;can't find sector 0 after track format
  129. fmt2Err                            EQU        -83                    ;can't get enough sync
  130. verErr                            EQU        -84                    ;track failed to verify
  131. clkRdErr                        EQU        -85                    ;unable to read same clock value twice
  132. clkWrErr                        EQU        -86                    ;time written did not verify
  133. prWrErr                            EQU        -87                    ;parameter ram written didn't read-verify
  134. prInitErr                        EQU        -88                    ;InitUtil found the parameter ram uninitialized
  135. rcvrErr                            EQU        -89                    ;SCC receiver error (framing; parity; OR)
  136. breakRecd                        EQU        -90                    ;Break received (SCC)
  137.  
  138.                                                             ;Scrap Manager errors
  139. noScrapErr                        EQU        -100                ;No scrap exists error
  140. noTypeErr                        EQU        -102                ;No object of that type in scrap
  141.  
  142.                                                             ; ENET error codes 
  143. eLenErr                            EQU        -92                    ;Length error ddpLenErr
  144. eMultiErr                        EQU        -91                    ;Multicast address error ddpSktErr
  145.  
  146. ddpSktErr                        EQU        -91                    ;error in soket number
  147. ddpLenErr                        EQU        -92                    ;data length too big
  148. noBridgeErr                        EQU        -93                    ;no network bridge for non-local send
  149. lapProtErr                        EQU        -94                    ;error in attaching/detaching protocol
  150. excessCollsns                    EQU        -95                    ;excessive collisions on write
  151. portNotPwr                        EQU        -96                    ;serial port not currently powered
  152. portInUse                        EQU        -97                    ;driver Open error code (port is in use)
  153. portNotCf                        EQU        -98                    ;driver Open error code (parameter RAM not configured for this connection)
  154.  
  155.                                                             ; Memory Manager errors
  156. memROZWarn                        EQU        -99                    ;soft error in ROZ
  157. memROZError                        EQU        -99                    ;hard error in ROZ
  158. memROZErr                        EQU        -99                    ;hard error in ROZ
  159. memFullErr                        EQU        -108                ;Not enough room in heap zone
  160. nilHandleErr                    EQU        -109                ;Master Pointer was NIL in HandleZone or other
  161. memWZErr                        EQU        -111                ;WhichZone failed (applied to free block)
  162. memPurErr                        EQU        -112                ;trying to purge a locked or non-purgeable block
  163. memAdrErr                        EQU        -110                ;address was odd; or out of range
  164. memAZErr                        EQU        -113                ;Address in zone check failed
  165. memPCErr                        EQU        -114                ;Pointer Check failed
  166. memBCErr                        EQU        -115                ;Block Check failed
  167. memSCErr                        EQU        -116                ;Size Check failed
  168. memLockedErr                    EQU        -117                ;trying to move a locked block (MoveHHi)
  169.  
  170.                                                             ; Printing Errors 
  171. iMemFullErr                        EQU        -108
  172. iIOAbort                        EQU        -27
  173.  
  174.  
  175. resourceInMemory                EQU        -188                ;Resource already in memory
  176. writingPastEnd                    EQU        -189                ;Writing past end of file
  177. inputOutOfBounds                EQU        -190                ;Offset of Count out of bounds
  178. resNotFound                        EQU        -192                ;Resource not found
  179. resFNotFound                    EQU        -193                ;Resource file not found
  180. addResFailed                    EQU        -194                ;AddResource failed
  181. addRefFailed                    EQU        -195                ;AddReference failed
  182. rmvResFailed                    EQU        -196                ;RmveResource failed
  183. rmvRefFailed                    EQU        -197                ;RmveReference failed
  184. resAttrErr                        EQU        -198                ;attribute inconsistent with operation
  185. mapReadErr                        EQU        -199                ;map inconsistent with operation
  186. CantDecompress                    EQU        -186                ;resource bent ("the bends") - can't decompress a compressed resource
  187. badExtResource                    EQU        -185                ;extended resource has a bad format.
  188. noMemForPictPlaybackErr            EQU        -145
  189. rgnOverflowErr                    EQU        -147
  190. rgnTooBigError                    EQU        -147
  191. pixMapTooDeepErr                EQU        -148
  192. insufficientStackErr            EQU        -149
  193. nsStackErr                        EQU        -149
  194.  
  195. evtNotEnb                        EQU        1                    ;event not enabled at PostEvent
  196. ;  OffScreen QuickDraw Errors 
  197.  
  198. cMatchErr                        EQU        -150                ;Color2Index failed to find an index
  199. cTempMemErr                        EQU        -151                ;failed to allocate memory for temporary structures
  200. cNoMemErr                        EQU        -152                ;failed to allocate memory for structure
  201. cRangeErr                        EQU        -153                ;range error on colorTable request
  202. cProtectErr                        EQU        -154                ;colorTable entry protection violation
  203. cDevErr                            EQU        -155                ;invalid type of graphics device
  204. cResErr                            EQU        -156                ;invalid resolution for MakeITable
  205. cDepthErr                        EQU        -157                ;invalid pixel depth 
  206. rgnTooBigErr                    EQU        -500
  207. updPixMemErr                    EQU        -125                ;insufficient memory to update a pixmap
  208. pictInfoVersionErr                EQU        -11000                ;wrong version of the PictInfo structure
  209. pictInfoIDErr                    EQU        -11001                ;the internal consistancy check for the PictInfoID is wrong
  210. pictInfoVerbErr                    EQU        -11002                ;the passed verb was invalid
  211. cantLoadPickMethodErr            EQU        -11003                ;unable to load the custom pick proc
  212. colorsRequestedErr                EQU        -11004                ;the number of colors requested was illegal
  213. pictureDataErr                    EQU        -11005                ;the picture data was invalid
  214.  
  215.                                                             ;Sound Manager errors
  216. noHardware                        EQU        -200                ;obsolete spelling
  217. notEnoughHardware                EQU        -201                ;obsolete spelling
  218. queueFull                        EQU        -203                ;Sound Manager Error Returns
  219. resProblem                        EQU        -204                ;Sound Manager Error Returns
  220. badChannel                        EQU        -205                ;Sound Manager Error Returns
  221. badFormat                        EQU        -206                ;Sound Manager Error Returns
  222. notEnoughBufferSpace            EQU        -207                ;could not allocate enough memory
  223. badFileFormat                    EQU        -208                ;was not type AIFF or was of bad format,corrupt
  224. channelBusy                        EQU        -209                ;the Channel is being used for a PFD already
  225. buffersTooSmall                    EQU        -210                ;can not operate in the memory allowed
  226. channelNotBusy                    EQU        -211
  227. noMoreRealTime                    EQU        -212                ;not enough CPU cycles left to add another task
  228. siNoSoundInHardware                EQU        -220                ;no Sound Input hardware
  229. siBadSoundInDevice                EQU        -221                ;invalid index passed to SoundInGetIndexedDevice
  230. siNoBufferSpecified                EQU        -222                ;returned by synchronous SPBRecord if nil buffer passed
  231. siInvalidCompression            EQU        -223                ;invalid compression type
  232. siHardDriveTooSlow                EQU        -224                ;hard drive too slow to record to disk
  233. siInvalidSampleRate                EQU        -225                ;invalid sample rate
  234. siInvalidSampleSize                EQU        -226                ;invalid sample size
  235. siDeviceBusyErr                    EQU        -227                ;input device already in use
  236. siBadDeviceName                    EQU        -228                ;input device could not be opened
  237. siBadRefNum                        EQU        -229                ;invalid input device reference number
  238. siInputDeviceErr                EQU        -230                ;input device hardware failure
  239. siUnknownInfoType                EQU        -231                ;invalid info type selector (returned by driver)
  240. siUnknownQuality                EQU        -232                ;invalid quality selector (returned by driver)
  241. ; Speech Manager errors
  242.  
  243. noSynthFound                    EQU        -240
  244. synthOpenFailed                    EQU        -241
  245. synthNotReady                    EQU        -242
  246. bufTooSmall                        EQU        -243
  247. voiceNotFound                    EQU        -244
  248. incompatibleVoice                EQU        -245
  249. badDictFormat                    EQU        -246
  250. badInputText                    EQU        -247
  251. ;  Midi Manager Errors: 
  252.  
  253. midiNoClientErr                    EQU        -250                ;no client with that ID found
  254. midiNoPortErr                    EQU        -251                ;no port with that ID found
  255. midiTooManyPortsErr                EQU        -252                ;too many ports already installed in the system
  256. midiTooManyConsErr                EQU        -253                ;too many connections made
  257. midiVConnectErr                    EQU        -254                ;pending virtual connection created
  258. midiVConnectMade                EQU        -255                ;pending virtual connection resolved
  259. midiVConnectRmvd                EQU        -256                ;pending virtual connection removed
  260. midiNoConErr                    EQU        -257                ;no connection exists between specified ports
  261. midiWriteErr                    EQU        -258                ;MIDIWritePacket couldn't write to all connected ports
  262. midiNameLenErr                    EQU        -259                ;name supplied is longer than 31 characters
  263. midiDupIDErr                    EQU        -260                ;duplicate client ID
  264. midiInvalidCmdErr                EQU        -261                ;command not supported for port type
  265.  
  266.  
  267. nmTypErr                        EQU        -299                ;Notification Manager:wrong queue type
  268.  
  269.  
  270. siInitSDTblErr                    EQU        1                    ;slot int dispatch table could not be initialized.
  271. siInitVBLQsErr                    EQU        2                    ;VBLqueues for all slots could not be initialized.
  272. siInitSPTblErr                    EQU        3                    ;slot priority table could not be initialized.
  273. sdmJTInitErr                    EQU        10                    ;SDM Jump Table could not be initialized.
  274. sdmInitErr                        EQU        11                    ;SDM could not be initialized.
  275. sdmSRTInitErr                    EQU        12                    ;Slot Resource Table could not be initialized.
  276. sdmPRAMInitErr                    EQU        13                    ;Slot PRAM could not be initialized.
  277. sdmPriInitErr                    EQU        14                    ;Cards could not be initialized.
  278.  
  279. smSDMInitErr                    EQU        -290                ;Error; SDM could not be initialized.
  280. smSRTInitErr                    EQU        -291                ;Error; Slot Resource Table could not be initialized.
  281. smPRAMInitErr                    EQU        -292                ;Error; Slot Resource Table could not be initialized.
  282. smPriInitErr                    EQU        -293                ;Error; Cards could not be initialized.
  283. smEmptySlot                        EQU        -300                ;No card in slot
  284. smCRCFail                        EQU        -301                ;CRC check failed for declaration data
  285. smFormatErr                        EQU        -302                ;FHeader Format is not Apple's
  286. smRevisionErr                    EQU        -303                ;Wrong revison level
  287. smNoDir                            EQU        -304                ;Directory offset is Nil
  288. smDisabledSlot                    EQU        -305                ;This slot is disabled (-305 use to be smLWTstBad)
  289. smNosInfoArray                    EQU        -306                ;No sInfoArray. Memory Mgr error.
  290.  
  291.  
  292. smResrvErr                        EQU        -307                ;Fatal reserved error. Resreved field <> 0.
  293. smUnExBusErr                    EQU        -308                ;Unexpected BusError
  294. smBLFieldBad                    EQU        -309                ;ByteLanes field was bad.
  295. smFHBlockRdErr                    EQU        -310                ;Error occured during _sGetFHeader.
  296. smFHBlkDispErr                    EQU        -311                ;Error occured during _sDisposePtr (Dispose of FHeader block).
  297. smDisposePErr                    EQU        -312                ;_DisposePointer error
  298. smNoBoardSRsrc                    EQU        -313                ;No Board sResource.
  299. smGetPRErr                        EQU        -314                ;Error occured during _sGetPRAMRec (See SIMStatus).
  300. smNoBoardId                        EQU        -315                ;No Board Id.
  301. smInitStatVErr                    EQU        -316                ;The InitStatusV field was negative after primary or secondary init.
  302. smInitTblVErr                    EQU        -317                ;An error occured while trying to initialize the Slot Resource Table.
  303. smNoJmpTbl                        EQU        -318                ;SDM jump table could not be created.
  304. smReservedSlot                    EQU        -318                ;slot is reserved, VM should not use this address space.
  305. smBadBoardId                    EQU        -319                ;BoardId was wrong; re-init the PRAM record.
  306. smBusErrTO                        EQU        -320                ;BusError time out.
  307.                                                             ; These errors are logged in the  vendor status field of the sInfo record. 
  308. svTempDisable                    EQU        -32768                ;Temporarily disable card but run primary init.
  309. svDisabled                        EQU        -32640                ;Reserve range -32640 to -32768 for Apple temp disables.
  310. smBadRefId                        EQU        -330                ;Reference Id not found in List
  311. smBadsList                        EQU        -331                ;Bad sList: Id1 < Id2 < Id3 ...format is not followed.
  312. smReservedErr                    EQU        -332                ;Reserved field not zero
  313. smCodeRevErr                    EQU        -333                ;Code revision is wrong
  314.  
  315. smCPUErr                        EQU        -334                ;Code revision is wrong
  316. smsPointerNil                    EQU        -335                ;LPointer is nil From sOffsetData. If this error occurs; check sInfo rec for more information.
  317. smNilsBlockErr                    EQU        -336                ;Nil sBlock error (Dont allocate and try to use a nil sBlock)
  318. smSlotOOBErr                    EQU        -337                ;Slot out of bounds error
  319. smSelOOBErr                        EQU        -338                ;Selector out of bounds error
  320. smNewPErr                        EQU        -339                ;_NewPtr error
  321. smBlkMoveErr                    EQU        -340                ;_BlockMove error
  322. smCkStatusErr                    EQU        -341                ;Status of slot = fail.
  323. smGetDrvrNamErr                    EQU        -342                ;Error occured during _sGetDrvrName.
  324. smDisDrvrNamErr                    EQU        -343                ;Error occured during _sDisDrvrName.
  325. smNoMoresRsrcs                    EQU        -344                ;No more sResources
  326. smsGetDrvrErr                    EQU        -345                ;Error occurred during _sGetDriver.
  327. smBadsPtrErr                    EQU        -346                ;Bad pointer was passed to sCalcsPointer
  328. smByteLanesErr                    EQU        -347                ;NumByteLanes was determined to be zero.
  329. smOffsetErr                        EQU        -348                ;Offset was too big (temporary error
  330. smNoGoodOpens                    EQU        -349                ;No opens were successfull in the loop.
  331. smSRTOvrFlErr                    EQU        -350                ;SRT over flow.
  332. smRecNotFnd                        EQU        -351                ;Record not found in the SRT.
  333.  
  334.  
  335.                                                             ;Dictionary Manager errors
  336. notBTree                        EQU        -410                ;The file is not a dictionary.
  337. btNoSpace                        EQU        -413                ;Can't allocate disk space.
  338. btDupRecErr                        EQU        -414                ;Record already exists.
  339. btRecNotFnd                        EQU        -415                ;Record cannot be found.
  340. btKeyLenErr                        EQU        -416                ;Maximum key length is too long or equal to zero.
  341. btKeyAttrErr                    EQU        -417                ;There is no such a key attribute.
  342. unknownInsertModeErr            EQU        -20000                ;There is no such an insert mode.
  343. recordDataTooBigErr                EQU        -20001                ;The record data is bigger than buffer size (1024 bytes).
  344. invalidIndexErr                    EQU        -20002                ;The recordIndex parameter is not valid.
  345.  
  346.                                                             ; Edition Mgr errors
  347. editionMgrInitErr                EQU        -450                ;edition manager not inited by this app
  348. badSectionErr                    EQU        -451                ;not a valid SectionRecord
  349. notRegisteredSectionErr            EQU        -452                ;not a registered SectionRecord
  350. badEditionFileErr                EQU        -453                ;edition file is corrupt
  351. badSubPartErr                    EQU        -454                ;can not use sub parts in this release
  352. multiplePublisherWrn            EQU        -460                ;A Publisher is already registered for that container
  353. containerNotFoundWrn            EQU        -461                ;could not find editionContainer at this time
  354. containerAlreadyOpenWrn            EQU        -462                ;container already opened by this section
  355. notThePublisherWrn                EQU        -463                ;not the first registered publisher for that container
  356.  
  357. teScrapSizeErr                    EQU        -501                ;scrap item too big for text edit record
  358. hwParamErr                        EQU        -502                ;bad selector for _HWPriv
  359.  
  360.                                                             ;Process Manager errors
  361. procNotFound                    EQU        -600                ;no eligible process with specified descriptor
  362. memFragErr                        EQU        -601                ;not enough room to launch app w/special requirements
  363. appModeErr                        EQU        -602                ;memory mode is 32-bit, but app not 32-bit clean
  364. protocolErr                        EQU        -603                ;app made module calls in improper order
  365. hardwareConfigErr                EQU        -604                ;hardware configuration not correct for call
  366. appMemFullErr                    EQU        -605                ;application SIZE not big enough for launch
  367. appIsDaemon                        EQU        -606                ;app is BG-only, and launch flags disallow this
  368. bufferIsSmall                    EQU        -607                ;error returns from Post and Accept 
  369. noOutstandingHLE                EQU        -608
  370. connectionInvalid                EQU        -609
  371. noUserInteractionAllowed        EQU        -610                ; no user interaction allowed 
  372. ;  Thread Manager Error Codes 
  373.  
  374. threadTooManyReqsErr            EQU        -617
  375. threadNotFoundErr                EQU        -618
  376. threadProtocolErr                EQU        -619
  377. ; MemoryDispatch errors
  378.  
  379. notEnoughMemoryErr                EQU        -620                ;insufficient physical memory
  380. notHeldErr                        EQU        -621                ;specified range of memory is not held
  381. cannotMakeContiguousErr            EQU        -622                ;cannot make specified range contiguous
  382. notLockedErr                    EQU        -623                ;specified range of memory is not locked
  383. interruptsMaskedErr                EQU        -624                ;don’t call with interrupts masked
  384. cannotDeferErr                    EQU        -625                ;unable to defer additional functions
  385. noMMUErr                        EQU        -626                ;no MMU present
  386.  
  387.                                                             ; Database access error codes 
  388. rcDBNull                        EQU        -800
  389. rcDBValue                        EQU        -801
  390. rcDBError                        EQU        -802
  391. rcDBBadType                        EQU        -803
  392. rcDBBreak                        EQU        -804
  393. rcDBExec                        EQU        -805
  394. rcDBBadSessID                    EQU        -806
  395. rcDBBadSessNum                    EQU        -807                ; bad session number for DBGetConnInfo 
  396. rcDBBadDDEV                        EQU        -808                ; bad ddev specified on DBInit 
  397. rcDBAsyncNotSupp                EQU        -809                ; ddev does not support async calls 
  398. rcDBBadAsyncPB                    EQU        -810                ; tried to kill a bad pb 
  399. rcDBNoHandler                    EQU        -811                ; no app handler for specified data type 
  400. rcDBWrongVersion                EQU        -812                ; incompatible versions 
  401. rcDBPackNotInited                EQU        -813                ; attempt to call other routine before InitDBPack 
  402.  
  403. ; Help Mgr error range: -850 to -874
  404.  
  405. hmHelpDisabled                    EQU        -850                ; Show Balloons mode was off, call to routine ignored 
  406. hmBalloonAborted                EQU        -853                ; Returned if mouse was moving or mouse wasn't in window port rect 
  407. hmSameAsLastBalloon                EQU        -854                ; Returned from HMShowMenuBalloon if menu & item is same as last time 
  408. hmHelpManagerNotInited            EQU        -855                ; Returned from HMGetHelpMenuHandle if help menu not setup 
  409. hmSkippedBalloon                EQU        -857                ; Returned from calls if helpmsg specified a skip balloon 
  410. hmWrongVersion                    EQU        -858                ; Returned if help mgr resource was the wrong version 
  411. hmUnknownHelpType                EQU        -859                ; Returned if help msg record contained a bad type 
  412. hmOperationUnsupported            EQU        -861                ; Returned from HMShowBalloon call if bad method passed to routine 
  413. hmNoBalloonUp                    EQU        -862                ; Returned from HMRemoveBalloon if no balloon was visible when call was made 
  414. hmCloseViewActive                EQU        -863                ; Returned from HMRemoveBalloon if CloseView was active 
  415.  
  416.  
  417.  
  418.                                                             ;PPC errors
  419. notInitErr                        EQU        -900                ;PPCToolBox not initialized
  420. nameTypeErr                        EQU        -902                ;Invalid or inappropriate locationKindSelector in locationName
  421. noPortErr                        EQU        -903                ;Unable to open port or bad portRefNum.  If you're calling 
  422.                                                             ; AESend, this is because your application does not have 
  423.                                                             ; the isHighLevelEventAware bit set in your SIZE resource. 
  424. noGlobalsErr                    EQU        -904                ;The system is hosed, better re-boot
  425. localOnlyErr                    EQU        -905                ;Network activity is currently disabled
  426. destPortErr                        EQU        -906                ;Port does not exist at destination
  427. sessTableErr                    EQU        -907                ;Out of session tables, try again later
  428. noSessionErr                    EQU        -908                ;Invalid session reference number
  429. badReqErr                        EQU        -909                ;bad parameter or invalid state for operation
  430. portNameExistsErr                EQU        -910                ;port is already open (perhaps in another app)
  431. noUserNameErr                    EQU        -911                ;user name unknown on destination machine
  432. userRejectErr                    EQU        -912                ;Destination rejected the session request
  433. noMachineNameErr                EQU        -913                ;user hasn't named his Macintosh in the Network Setup Control Panel
  434. noToolboxNameErr                EQU        -914                ;A system resource is missing, not too likely
  435. noResponseErr                    EQU        -915                ;unable to contact destination
  436. portClosedErr                    EQU        -916                ;port was closed
  437. sessClosedErr                    EQU        -917                ;session was closed
  438. badPortNameErr                    EQU        -919                ;PPCPortRec malformed
  439. noDefaultUserErr                EQU        -922                ;user hasn't typed in owners name in Network Setup Control Pannel
  440. notLoggedInErr                    EQU        -923                ;The default userRefNum does not yet exist
  441. noUserRefErr                    EQU        -924                ;unable to create a new userRefNum
  442. networkErr                        EQU        -925                ;An error has occured in the network, not too likely
  443. noInformErr                        EQU        -926                ;PPCStart failed because destination did not have inform pending
  444. authFailErr                        EQU        -927                ;unable to authenticate user at destination
  445. noUserRecErr                    EQU        -928                ;Invalid user reference number
  446. badServiceMethodErr                EQU        -930                ;illegal service type, or not supported
  447. badLocNameErr                    EQU        -931                ;location name malformed
  448. guestNotAllowedErr                EQU        -932                ;destination port requires authentication
  449.  
  450. noMaskFoundErr                    EQU        -1000                ;Icon Utilties Error
  451.  
  452. nbpBuffOvr                        EQU        -1024                ;Buffer overflow in LookupName
  453. nbpNoConfirm                    EQU        -1025
  454. nbpConfDiff                        EQU        -1026                ;Name confirmed at different socket
  455. nbpDuplicate                    EQU        -1027                ;Duplicate name exists already
  456. nbpNotFound                        EQU        -1028                ;Name not found on remove
  457. nbpNISErr                        EQU        -1029                ;Error trying to open the NIS
  458.  
  459. aspBadVersNum                    EQU        -1066                ;Server cannot support this ASP version
  460. aspBufTooSmall                    EQU        -1067                ;Buffer too small
  461. aspNoMoreSess                    EQU        -1068                ;No more sessions on server
  462. aspNoServers                    EQU        -1069                ;No servers at that address
  463. aspParamErr                        EQU        -1070                ;Parameter error
  464. aspServerBusy                    EQU        -1071                ;Server cannot open another session
  465. aspSessClosed                    EQU        -1072                ;Session closed
  466. aspSizeErr                        EQU        -1073                ;Command block too big
  467. aspTooMany                        EQU        -1074                ;Too many clients (server error)
  468. aspNoAck                        EQU        -1075                ;No ack on attention request (server err)
  469.  
  470. reqFailed                        EQU        -1096
  471. tooManyReqs                        EQU        -1097
  472. tooManySkts                        EQU        -1098
  473. badATPSkt                        EQU        -1099
  474. badBuffNum                        EQU        -1100
  475. noRelErr                        EQU        -1101
  476. cbNotFound                        EQU        -1102
  477. noSendResp                        EQU        -1103
  478. noDataArea                        EQU        -1104
  479. reqAborted                        EQU        -1105
  480. ;  ADSP Error Codes 
  481.  
  482.                                                             ; driver control ioResults 
  483. errRefNum                        EQU        -1280                ; bad connection refNum 
  484. errAborted                        EQU        -1279                ; control call was aborted 
  485. errState                        EQU        -1278                ; bad connection state for this operation 
  486. errOpening                        EQU        -1277                ; open connection request failed 
  487. errAttention                    EQU        -1276                ; attention message too long 
  488. errFwdReset                        EQU        -1275                ; read terminated by forward reset 
  489. errDSPQueueSize                    EQU        -1274                ; DSP Read/Write Queue Too small 
  490. errOpenDenied                    EQU        -1273                ; open connection request was denied 
  491.  
  492. ; --------------------------------------------------------------
  493. ;        Apple event manager error messages
  494. ;--------------------------------------------------------------
  495.  
  496.  
  497. errAECoercionFail                EQU        -1700                ; bad parameter data or unable to coerce the data supplied 
  498. errAEDescNotFound                EQU        -1701
  499. errAECorruptData                EQU        -1702
  500. errAEWrongDataType                EQU        -1703
  501. errAENotAEDesc                    EQU        -1704
  502. errAEBadListItem                EQU        -1705                ; the specified list item does not exist 
  503. errAENewerVersion                EQU        -1706                ; need newer version of the AppleEvent manager 
  504. errAENotAppleEvent                EQU        -1707                ; the event is not in AppleEvent format 
  505. errAEEventNotHandled            EQU        -1708                ; the AppleEvent was not handled by any handler 
  506. errAEReplyNotValid                EQU        -1709                ; AEResetTimer was passed an invalid reply parameter 
  507. errAEUnknownSendMode            EQU        -1710                ; mode wasn't NoReply, WaitReply, or QueueReply or Interaction level is unknown 
  508. errAEWaitCanceled                EQU        -1711                ; in AESend, the user cancelled out of wait loop for reply or receipt 
  509. errAETimeout                    EQU        -1712                ; the AppleEvent timed out 
  510. errAENoUserInteraction            EQU        -1713                ; no user interaction is allowed 
  511. errAENotASpecialFunction        EQU        -1714                ; there is no special function for/with this keyword 
  512. errAEParamMissed                EQU        -1715                ; a required parameter was not accessed 
  513. errAEUnknownAddressType            EQU        -1716                ; the target address type is not known 
  514. errAEHandlerNotFound            EQU        -1717                ; no handler in the dispatch tables fits the parameters to AEGetEventHandler or AEGetCoercionHandler 
  515. errAEReplyNotArrived            EQU        -1718                ; the contents of the reply you are accessing have not arrived yet 
  516. errAEIllegalIndex                EQU        -1719                ; index is out of range in a put operation 
  517. errAEImpossibleRange            EQU        -1720                ; A range like 3rd to 2nd, or 1st to all. 
  518. errAEWrongNumberArgs            EQU        -1721                ; Logical op kAENOT used with other than 1 term 
  519. errAEAccessorNotFound            EQU        -1723                ; Accessor proc matching wantClass and containerType or wildcards not found 
  520. errAENoSuchLogical                EQU        -1725                ; Something other than AND, OR, or NOT 
  521. errAEBadTestKey                    EQU        -1726                ; Test is neither typeLogicalDescriptor nor typeCompDescriptor 
  522. errAENotAnObjSpec                EQU        -1727                ; Param to AEResolve not of type 'obj ' 
  523. errAENoSuchObject                EQU        -1728                ; e.g.,: specifier asked for the 3rd, but there are only 2. Basically, this indicates a run-time resolution error. 
  524. errAENegativeCount                EQU        -1729                ; CountProc returned negative value 
  525. errAEEmptyListContainer            EQU        -1730                ; Attempt to pass empty list as container to accessor 
  526. errAEUnknownObjectType            EQU        -1731                ; available only in version 1.0.1 or greater 
  527. errAERecordingIsAlreadyOn        EQU        -1732                ; available only in version 1.0.1 or greater 
  528. errAEReceiveTerminate            EQU        -1733                ; break out of all levels of AEReceive to the topmost (1.1 or greater) 
  529. errAEReceiveEscapeCurrent        EQU        -1734                ; break out of only lowest level of AEReceive (1.1 or greater) 
  530. errAEEventFiltered                EQU        -1735                ; event has been filtered, and should not be propogated (1.1 or greater) 
  531. errAEDuplicateHandler            EQU        -1736                ; attempt to install handler in table for identical class and id (1.1 or greater) 
  532. errAEStreamBadNesting            EQU        -1737                ; nesting violation while streaming 
  533. errAEStreamAlreadyConverted        EQU        -1738                ; attempt to convert a stream that has already been converted 
  534. errAEDescIsNull                    EQU        -1739                ; attempting to perform an invalid operation on a null descriptor 
  535.  
  536. errOSASystemError                EQU        -1750
  537. errOSAInvalidID                    EQU        -1751
  538. errOSABadStorageType            EQU        -1752
  539. errOSAScriptError                EQU        -1753
  540. errOSABadSelector                EQU        -1754
  541. errOSASourceNotAvailable        EQU        -1756
  542. errOSANoSuchDialect                EQU        -1757
  543. errOSADataFormatObsolete        EQU        -1758
  544. errOSADataFormatTooNew            EQU        -1759
  545. errOSACorruptData                EQU        -1702
  546. errOSARecordingIsAlreadyOn        EQU        -1732
  547. errOSAComponentMismatch            EQU        -1761                ; Parameters are from 2 different components 
  548. errOSACantOpenComponent            EQU        -1762                ; Can't connect to scripting system with that ID 
  549.  
  550.  
  551. ;  AppleEvent error definitions 
  552.  
  553. errOffsetInvalid                EQU        -1800
  554. errOffsetIsOutsideOfView        EQU        -1801
  555. errTopOfDocument                EQU        -1810
  556. errTopOfBody                    EQU        -1811
  557. errEndOfDocument                EQU        -1812
  558. errEndOfBody                    EQU        -1813
  559.  
  560.                                                             ; Drag Manager error codes 
  561. badDragRefErr                    EQU        -1850                ; unknown drag reference 
  562. badDragItemErr                    EQU        -1851                ; unknown drag item reference 
  563. badDragFlavorErr                EQU        -1852                ; unknown flavor type 
  564. duplicateFlavorErr                EQU        -1853                ; flavor type already exists 
  565. cantGetFlavorErr                EQU        -1854                ; error while trying to get flavor data 
  566. duplicateHandlerErr                EQU        -1855                ; handler already exists 
  567. handlerNotFoundErr                EQU        -1856                ; handler not found 
  568. dragNotAcceptedErr                EQU        -1857                ; drag was not accepted by receiver 
  569. unsupportedForPlatformErr        EQU        -1858                ; call is for PowerPC only 
  570. noSuitableDisplaysErr            EQU        -1859                ; no displays support translucency 
  571. badImageRgnErr                    EQU        -1860                ; bad translucent image region 
  572. badImageErr                        EQU        -1861                ; bad translucent image PixMap 
  573.  
  574. ; QuickTime errors
  575.  
  576. couldNotResolveDataRef            EQU        -2000
  577. badImageDescription                EQU        -2001
  578. badPublicMovieAtom                EQU        -2002
  579. cantFindHandler                    EQU        -2003
  580. cantOpenHandler                    EQU        -2004
  581. badComponentType                EQU        -2005
  582. noMediaHandler                    EQU        -2006
  583. noDataHandler                    EQU        -2007
  584. invalidMedia                    EQU        -2008
  585. invalidTrack                    EQU        -2009
  586. invalidMovie                    EQU        -2010
  587. invalidSampleTable                EQU        -2011
  588. invalidDataRef                    EQU        -2012
  589. invalidHandler                    EQU        -2013
  590. invalidDuration                    EQU        -2014
  591. invalidTime                        EQU        -2015
  592. cantPutPublicMovieAtom            EQU        -2016
  593. badEditList                        EQU        -2017
  594. mediaTypesDontMatch                EQU        -2018
  595. progressProcAborted                EQU        -2019
  596. movieToolboxUninitialized        EQU        -2020
  597. noRecordOfApp                    EQU        -2020                ; replica 
  598. wfFileNotFound                    EQU        -2021
  599. cantCreateSingleForkFile        EQU        -2022                ; happens when file already exists 
  600. invalidEditState                EQU        -2023
  601. nonMatchingEditState            EQU        -2024
  602. staleEditState                    EQU        -2025
  603. userDataItemNotFound            EQU        -2026
  604. maxSizeToGrowTooSmall            EQU        -2027
  605. badTrackIndex                    EQU        -2028
  606. trackIDNotFound                    EQU        -2029
  607. trackNotInMovie                    EQU        -2030
  608. timeNotInTrack                    EQU        -2031
  609. timeNotInMedia                    EQU        -2032
  610. badEditIndex                    EQU        -2033
  611. internalQuickTimeError            EQU        -2034
  612. cantEnableTrack                    EQU        -2035
  613. invalidRect                        EQU        -2036
  614. invalidSampleNum                EQU        -2037
  615. invalidChunkNum                    EQU        -2038
  616. invalidSampleDescIndex            EQU        -2039
  617. invalidChunkCache                EQU        -2040
  618. invalidSampleDescription        EQU        -2041
  619. dataNotOpenForRead                EQU        -2042
  620. dataNotOpenForWrite                EQU        -2043
  621. dataAlreadyOpenForWrite            EQU        -2044
  622. dataAlreadyClosed                EQU        -2045
  623. endOfDataReached                EQU        -2046
  624. dataNoDataRef                    EQU        -2047
  625. noMovieFound                    EQU        -2048
  626. invalidDataRefContainer            EQU        -2049
  627. badDataRefIndex                    EQU        -2050
  628. noDefaultDataRef                EQU        -2051
  629. couldNotUseAnExistingSample        EQU        -2052
  630. featureUnsupported                EQU        -2053
  631. noVideoTrackInMovieErr            EQU        -2054                ; QT for Windows error 
  632. noSoundTrackInMovieErr            EQU        -2055                ; QT for Windows error 
  633. soundSupportNotAvailableErr        EQU        -2056                ; QT for Windows error 
  634. unsupportedAuxiliaryImportData    EQU        -2057
  635. auxiliaryExportDataUnavailable    EQU        -2058
  636. samplesAlreadyInMediaErr        EQU        -2059
  637. noSourceTreeFoundErr            EQU        -2060
  638. sourceNotFoundErr                EQU        -2061
  639. movieTextNotFoundErr            EQU        -2062
  640. missingRequiredParameterErr        EQU        -2063
  641. invalidSpriteWorldPropertyErr    EQU        -2064
  642. invalidSpritePropertyErr        EQU        -2065
  643. gWorldsNotSameDepthAndSizeErr    EQU        -2066
  644. invalidSpriteIndexErr            EQU        -2067
  645. invalidImageIndexErr            EQU        -2068
  646. invalidSpriteIDErr                EQU        -2069
  647.  
  648. internalComponentErr            EQU        -2070
  649. notImplementedMusicOSErr        EQU        -2071
  650. cantSendToSynthesizerOSErr        EQU        -2072
  651. cantReceiveFromSynthesizerOSErr    EQU        -2073
  652. illegalVoiceAllocationOSErr        EQU        -2074
  653. illegalPartOSErr                EQU        -2075
  654. illegalChannelOSErr                EQU        -2076
  655. illegalKnobOSErr                EQU        -2077
  656. illegalKnobValueOSErr            EQU        -2078
  657. illegalInstrumentOSErr            EQU        -2079
  658. illegalControllerOSErr            EQU        -2080
  659. midiManagerAbsentOSErr            EQU        -2081
  660. synthesizerNotRespondingOSErr    EQU        -2082
  661. synthesizerOSErr                EQU        -2083
  662. illegalNoteChannelOSErr            EQU        -2084
  663. noteChannelNotAllocatedOSErr    EQU        -2085
  664. tunePlayerFullOSErr                EQU        -2086
  665. tuneParseOSErr                    EQU        -2087
  666. noExportProcAvailableErr        EQU        -2089
  667. videoOutputInUseErr                EQU        -2090
  668.  
  669. componentDllLoadErr                EQU        -2091                ; Windows specific errors (when component is loading)
  670. componentDllEntryNotFoundErr    EQU        -2092                ; Windows specific errors (when component is loading)
  671. qtmlDllLoadErr                    EQU        -2093                ; Windows specific errors (when qtml is loading)
  672. qtmlDllEntryNotFoundErr            EQU        -2094                ; Windows specific errors (when qtml is loading)
  673. qtmlUninitialized                EQU        -2095
  674. unsupportedOSErr                EQU        -2096
  675. unsupportedProcessorErr            EQU        -2097
  676.  
  677. cannotFindAtomErr                EQU        -2101
  678. notLeafAtomErr                    EQU        -2102
  679. atomsNotOfSameTypeErr            EQU        -2103
  680. atomIndexInvalidErr                EQU        -2104
  681. duplicateAtomTypeAndIDErr        EQU        -2105
  682. invalidAtomErr                    EQU        -2106
  683. invalidAtomContainerErr            EQU        -2107
  684. invalidAtomTypeErr                EQU        -2108
  685. cannotBeLeafAtomErr                EQU        -2109
  686.  
  687. digiUnimpErr                    EQU        -2201                ; feature unimplemented 
  688. qtParamErr                        EQU        -2202                ; bad input parameter (out of range, etc) 
  689. matrixErr                        EQU        -2203                ; bad matrix, digitizer did nothing 
  690. notExactMatrixErr                EQU        -2204                ; warning of bad matrix, digitizer did its best 
  691. noMoreKeyColorsErr                EQU        -2205                ; all key indexes in use 
  692. notExactSizeErr                    EQU        -2206                ; Can’t do exact size requested 
  693. badDepthErr                        EQU        -2207                ; Can’t digitize into this depth 
  694. noDMAErr                        EQU        -2208                ; Can’t do DMA digitizing (i.e. can't go to requested dest 
  695. badCallOrderErr                    EQU        -2209                ; Usually due to a status call being called prior to being setup first 
  696.  
  697. ;   Kernel Error Codes  
  698.  
  699. kernelIncompleteErr                EQU        -2401
  700. kernelCanceledErr                EQU        -2402
  701. kernelOptionsErr                EQU        -2403
  702. kernelPrivilegeErr                EQU        -2404
  703. kernelUnsupportedErr            EQU        -2405
  704. kernelObjectExistsErr            EQU        -2406
  705. kernelWritePermissionErr        EQU        -2407
  706. kernelReadPermissionErr            EQU        -2408
  707. kernelExecutePermissionErr        EQU        -2409
  708. kernelDeletePermissionErr        EQU        -2410
  709. kernelExecutionLevelErr            EQU        -2411
  710. kernelAttributeErr                EQU        -2412
  711. kernelAsyncSendLimitErr            EQU        -2413
  712. kernelAsyncReceiveLimitErr        EQU        -2414
  713. kernelTimeoutErr                EQU        -2415
  714. kernelInUseErr                    EQU        -2416
  715. kernelTerminatedErr                EQU        -2417
  716. kernelExceptionErr                EQU        -2418
  717. kernelIDErr                        EQU        -2419
  718. kernelAlreadyFreeErr            EQU        -2421
  719. kernelReturnValueErr            EQU        -2422
  720. kernelUnrecoverableErr            EQU        -2499
  721.  
  722.  
  723.  
  724.                                                             ; Text Services Mgr error codes 
  725. tsmComponentNoErr                EQU        0                    ; component result = no error 
  726. tsmUnsupScriptLanguageErr        EQU        -2500
  727. tsmInputMethodNotFoundErr        EQU        -2501
  728. tsmNotAnAppErr                    EQU        -2502                ; not an application error 
  729. tsmAlreadyRegisteredErr            EQU        -2503                ; want to register again error 
  730. tsmNeverRegisteredErr            EQU        -2504                ; app never registered error (not TSM aware) 
  731. tsmInvalidDocIDErr                EQU        -2505                ; invalid TSM documentation id 
  732. tsmTSMDocBusyErr                EQU        -2506                ; document is still active 
  733. tsmDocNotActiveErr                EQU        -2507                ; document is NOT active 
  734. tsmNoOpenTSErr                    EQU        -2508                ; no open text service 
  735. tsmCantOpenComponentErr            EQU        -2509                ; can’t open the component 
  736. tsmTextServiceNotFoundErr        EQU        -2510                ; no text service found 
  737. tsmDocumentOpenErr                EQU        -2511                ; there are open documents 
  738. tsmUseInputWindowErr            EQU        -2512                ; not TSM aware because we are using input window 
  739. tsmTSHasNoMenuErr                EQU        -2513                ; the text service has no menu 
  740. tsmTSNotOpenErr                    EQU        -2514                ; text service is not open 
  741. tsmComponentAlreadyOpenErr        EQU        -2515                ; text service already opened for the document 
  742. tsmInputMethodIsOldErr            EQU        -2516                ; returned by GetDefaultInputMethod 
  743. tsmScriptHasNoIMErr                EQU        -2517                ; script has no imput method or is using old IM 
  744. tsmUnsupportedTypeErr            EQU        -2518                ; unSupported interface type error 
  745. tsmUnknownErr                    EQU        -2519                ; any other errors 
  746. tsmInvalidContext                EQU        -2520                ; Invalid TSMContext specified in call 
  747. tsmNoHandler                    EQU        -2521                ; No Callback Handler exists for callback 
  748. tsmNoMoreTokens                    EQU        -2522                ; No more tokens are available for the source text 
  749. tsmNoStem                        EQU        -2523                ; No stem exists for the token 
  750. tsmDefaultIsNotInputMethodErr    EQU        -2524                ; Current Input source is KCHR or uchr, not Input Method  (GetDefaultInputMethod) 
  751.  
  752.  
  753.                                                             ; Mixed Mode error codes 
  754. mmInternalError                    EQU        -2526
  755. ;  NameRegistry error codes 
  756.  
  757. nrLockedErr                        EQU        -2536
  758. nrNotEnoughMemoryErr            EQU        -2537
  759. nrInvalidNodeErr                EQU        -2538
  760. nrNotFoundErr                    EQU        -2539
  761. nrNotCreatedErr                    EQU        -2540
  762. nrNameErr                        EQU        -2541
  763. nrNotSlotDeviceErr                EQU        -2542
  764. nrDataTruncatedErr                EQU        -2543
  765. nrPowerErr                        EQU        -2544
  766. nrPowerSwitchAbortErr            EQU        -2545
  767. nrTypeMismatchErr                EQU        -2546
  768. nrNotModifiedErr                EQU        -2547
  769. nrOverrunErr                    EQU        -2548
  770. nrResultCodeBase                EQU        -2549
  771. nrPathNotFound                    EQU        -2550                ; a path component lookup failed 
  772. nrPathBufferTooSmall            EQU        -2551                ; buffer for path is too small 
  773. nrInvalidEntryIterationOp        EQU        -2552                ; invalid entry iteration operation 
  774. nrPropertyAlreadyExists            EQU        -2553                ; property already exists 
  775. nrIterationDone                    EQU        -2554                ; iteration operation is done 
  776. nrExitedIteratorScope            EQU        -2555                ; outer scope of iterator was exited 
  777. nrTransactionAborted            EQU        -2556                ; transaction was aborted 
  778. ; **************************************************************************
  779. ;    Apple Script Error Codes
  780. ;*************************************************************************
  781.  
  782. ;  Runtime errors: 
  783.  
  784. errASCantConsiderAndIgnore        EQU        -2720
  785. errASCantCompareMoreThan32k        EQU        -2721                ; Parser/Compiler errors: 
  786. errASTerminologyNestingTooDeep    EQU        -2760
  787. errASIllegalFormalParameter        EQU        -2761
  788. errASParameterNotForEvent        EQU        -2762
  789. errASNoResultReturned            EQU        -2763                ;     The range -2780 thru -2799 is reserved for dialect specific error codes. (Error codes from different dialects may overlap.) 
  790. errASInconsistentNames            EQU        -2780                ;     English errors: 
  791.  
  792. ;  The preferred spelling for Code Fragment Manager errors:
  793.  
  794. cfragFirstErrCode                EQU        -2800                ; The first value in the range of CFM errors.
  795. cfragContextIDErr                EQU        -2800                ; The context ID was not valid.
  796. cfragConnectionIDErr            EQU        -2801                ; The connection ID was not valid.
  797. cfragNoSymbolErr                EQU        -2802                ; The specified symbol was not found.
  798. cfragNoSectionErr                EQU        -2803                ; The specified section was not found.
  799. cfragNoLibraryErr                EQU        -2804                ; The named library was not found.
  800. cfragDupRegistrationErr            EQU        -2805                ; The registration name was already in use.
  801. cfragFragmentFormatErr            EQU        -2806                ; A fragment's container format is unknown.
  802. cfragUnresolvedErr                EQU        -2807                ; A fragment had "hard" unresolved imports.
  803. cfragNoPositionErr                EQU        -2808                ; The registration insertion point was not found.
  804. cfragNoPrivateMemErr            EQU        -2809                ; Out of memory for internal bookkeeping.
  805. cfragNoClientMemErr                EQU        -2810                ; Out of memory for fragment mapping or section instances.
  806. cfragNoIDsErr                    EQU        -2811                ; No more CFM IDs for contexts, connections, etc.
  807. cfragInitOrderErr                EQU        -2812                ; 
  808. cfragImportTooOldErr            EQU        -2813                ; An import library was too old for a client.
  809. cfragImportTooNewErr            EQU        -2814                ; An import library was too new for a client.
  810. cfragInitLoopErr                EQU        -2815                ; Circularity in required initialization order.
  811. cfragInitAtBootErr                EQU        -2816                ; A boot library has an initialization function.  (System 7 only)
  812. cfragLibConnErr                    EQU        -2817                ; 
  813. cfragCFMStartupErr                EQU        -2818                ; Internal error during CFM initialization.
  814. cfragCFMInternalErr                EQU        -2819                ; An internal inconstistancy has been detected.
  815. cfragFragmentCorruptErr            EQU        -2820                ; A fragment's container was corrupt (known format).
  816. cfragInitFunctionErr            EQU        -2821                ; A fragment's initialization routine returned an error.
  817. cfragNoApplicationErr            EQU        -2822                ; No application member found in the cfrg resource.
  818. cfragArchitectureErr            EQU        -2823                ; A fragment has an unacceptable architecture.
  819. cfragFragmentUsageErr            EQU        -2824                ; A semantic error in usage of the fragment.
  820. cfragFileSizeErr                EQU        -2825                ; A file was too large to be mapped.
  821. cfragNotClosureErr                EQU        -2826                ; The closure ID was actually a connection ID.
  822. cfragNoRegistrationErr            EQU        -2827                ; The registration name was not found.
  823. cfragContainerIDErr                EQU        -2828                ; The fragment container ID was not valid.
  824. cfragClosureIDErr                EQU        -2829                ; The closure ID was not valid.
  825. cfragAbortClosureErr            EQU        -2830                ; Used by notification handlers to abort a closure.
  826. cfragOutputLengthErr            EQU        -2831                ; An output parameter is too small to hold the value.
  827. cfragLastErrCode                EQU        -2899                ; The last value in the range of CFM errors.
  828.     IF OLDROUTINENAMES THEN
  829. ;  The old spelling for Code Fragment Manager errors, kept for compatibility:
  830.  
  831. fragContextNotFound                EQU        -2800
  832. fragConnectionIDNotFound        EQU        -2801
  833. fragSymbolNotFound                EQU        -2802
  834. fragSectionNotFound                EQU        -2803
  835. fragLibNotFound                    EQU        -2804
  836. fragDupRegLibName                EQU        -2805
  837. fragFormatUnknown                EQU        -2806
  838. fragHadUnresolveds                EQU        -2807
  839. fragNoMem                        EQU        -2809
  840. fragNoAddrSpace                    EQU        -2810
  841. fragNoContextIDs                EQU        -2811
  842. fragObjectInitSeqErr            EQU        -2812
  843. fragImportTooOld                EQU        -2813
  844. fragImportTooNew                EQU        -2814
  845. fragInitLoop                    EQU        -2815
  846. fragInitRtnUsageErr                EQU        -2816
  847. fragLibConnErr                    EQU        -2817
  848. fragMgrInitErr                    EQU        -2818
  849. fragConstErr                    EQU        -2819
  850. fragCorruptErr                    EQU        -2820
  851. fragUserInitProcErr                EQU        -2821
  852. fragAppNotFound                    EQU        -2822
  853. fragArchError                    EQU        -2823
  854. fragInvalidFragmentUsage        EQU        -2824
  855. fragLastErrCode                    EQU        -2899
  856.     ENDIF    ; OLDROUTINENAMES
  857. ; Component Manager & component errors
  858.  
  859. invalidComponentID                EQU        -3000
  860. validInstancesExist                EQU        -3001
  861. componentNotCaptured            EQU        -3002
  862. componentDontRegister            EQU        -3003
  863. unresolvedComponentDLLErr        EQU        -3004
  864. ; Translation manager & Translation components
  865.  
  866. invalidTranslationPathErr        EQU        -3025                ;Source type to destination type not a valid path
  867. couldNotParseSourceFileErr        EQU        -3026                ;Source document does not contain source type
  868. noTranslationPathErr            EQU        -3030
  869. badTranslationSpecErr            EQU        -3031
  870. noPrefAppErr                    EQU        -3032
  871.  
  872. buf2SmallErr                    EQU        -3101
  873. noMPPErr                        EQU        -3102
  874. ckSumErr                        EQU        -3103
  875. extractErr                        EQU        -3104
  876. readQErr                        EQU        -3105
  877. atpLenErr                        EQU        -3106
  878. atpBadRsp                        EQU        -3107
  879. recNotFnd                        EQU        -3108
  880. sktClosedErr                    EQU        -3109
  881.  
  882. ;  Color Picker errors
  883.  
  884. firstPickerError                EQU        -4000
  885. invalidPickerType                EQU        -4000
  886. requiredFlagsDontMatch            EQU        -4001
  887. pickerResourceError                EQU        -4002
  888. cantLoadPicker                    EQU        -4003
  889. cantCreatePickerWindow            EQU        -4004
  890. cantLoadPackage                    EQU        -4005
  891. pickerCantLive                    EQU        -4006
  892. colorSyncNotInstalled            EQU        -4007
  893. badProfileError                    EQU        -4008
  894. noHelpForItem                    EQU        -4009
  895.  
  896.  
  897. ;  new Folder Manager error codes 
  898.  
  899. badFolderDescErr                EQU        -4270
  900. duplicateFolderDescErr            EQU        -4271
  901. noMoreFolderDescErr                EQU        -4272
  902. invalidFolderTypeErr            EQU        -4273
  903. duplicateRoutingErr                EQU        -4274
  904. routingNotFoundErr                EQU        -4275
  905. badRoutingSizeErr                EQU        -4276
  906.  
  907.  
  908.  
  909.                                                             ;  AFP Protocol Errors 
  910. afpAccessDenied                    EQU        -5000                ; Insufficient access privileges for operation 
  911. afpAuthContinue                    EQU        -5001                ; Further information required to complete AFPLogin call 
  912. afpBadUAM                        EQU        -5002                ; Unknown user authentication method specified 
  913. afpBadVersNum                    EQU        -5003                ; Unknown AFP protocol version number specified 
  914. afpBitmapErr                    EQU        -5004                ; Bitmap contained bits undefined for call 
  915. afpCantMove                        EQU        -5005                ; Move destination is offspring of source, or root was specified 
  916. afpDenyConflict                    EQU        -5006                ; Specified open/deny modes conflict with current open modes 
  917. afpDirNotEmpty                    EQU        -5007                ; Cannot delete non-empty directory 
  918. afpDiskFull                        EQU        -5008                ; Insufficient free space on volume for operation 
  919. afpEofError                        EQU        -5009                ; Read beyond logical end-of-file 
  920. afpFileBusy                        EQU        -5010                ; Cannot delete an open file 
  921. afpFlatVol                        EQU        -5011                ; Cannot create directory on specified volume 
  922. afpItemNotFound                    EQU        -5012                ; Unknown UserName/UserID or missing comment/APPL entry 
  923. afpLockErr                        EQU        -5013                ; Some or all of requested range is locked by another user 
  924. afpMiscErr                        EQU        -5014                ; Unexpected error encountered during execution 
  925. afpNoMoreLocks                    EQU        -5015                ; Maximum lock limit reached 
  926. afpNoServer                        EQU        -5016                ; Server not responding 
  927. afpObjectExists                    EQU        -5017                ; Specified destination file or directory already exists 
  928. afpObjectNotFound                EQU        -5018                ; Specified file or directory does not exist 
  929. afpParmErr                        EQU        -5019                ; A specified parameter was out of allowable range 
  930. afpRangeNotLocked                EQU        -5020                ; Tried to unlock range that was not locked by user 
  931. afpRangeOverlap                    EQU        -5021                ; Some or all of range already locked by same user 
  932. afpSessClosed                    EQU        -5022                ; Session closed
  933. afpUserNotAuth                    EQU        -5023                ; No AFPLogin call has successfully been made for this session 
  934. afpCallNotSupported                EQU        -5024                ; Unsupported AFP call was made 
  935. afpObjectTypeErr                EQU        -5025                ; File/Directory specified where Directory/File expected 
  936. afpTooManyFilesOpen                EQU        -5026                ; Maximum open file count reached 
  937. afpServerGoingDown                EQU        -5027                ; Server is shutting down 
  938. afpCantRename                    EQU        -5028                ; AFPRename cannot rename volume 
  939. afpDirNotFound                    EQU        -5029                ; Unknown directory specified 
  940. afpIconTypeError                EQU        -5030                ; Icon size specified different from existing icon size 
  941. afpVolLocked                    EQU        -5031                ; Volume is Read-Only 
  942. afpObjectLocked                    EQU        -5032                ; Object is M/R/D/W inhibited
  943. afpContainsSharedErr            EQU        -5033                ; the folder being shared contains a shared folder
  944. afpIDNotFound                    EQU        -5034
  945. afpIDExists                        EQU        -5035
  946. afpDiffVolErr                    EQU        -5036
  947. afpCatalogChanged                EQU        -5037
  948. afpSameObjectErr                EQU        -5038
  949. afpBadIDErr                        EQU        -5039
  950. afpPwdSameErr                    EQU        -5040                ; Someone tried to change their password to the same password on a mantadory password change 
  951. afpPwdTooShortErr                EQU        -5041                ; The password being set is too short: there is a minimum length that must be met or exceeded 
  952. afpPwdExpiredErr                EQU        -5042                ; The password being used is too old: this requires the user to change the password before log-in can continue 
  953. afpInsideSharedErr                EQU        -5043                ; The folder being shared is inside a shared folder OR the folder contains a shared folder and is being moved into a shared folder 
  954.                                                             ; OR the folder contains a shared folder and is being moved into the descendent of a shared folder.
  955. afpInsideTrashErr                EQU        -5044                ; The folder being shared is inside the trash folder OR the shared folder is being moved into the trash folder 
  956.                                                             ; OR the folder is being moved to the trash and it contains a shared folder 
  957. afpPwdNeedsChangeErr            EQU        -5045                ; The password needs to be changed
  958. afpPwdPolicyErr                    EQU        -5046                ; Password does not conform to servers password policy 
  959.  
  960.                                                             ;  AppleShare Client Errors 
  961. afpBadDirIDType                    EQU        -5060
  962. afpCantMountMoreSrvre            EQU        -5061                ; The Maximum number of server connections has been reached 
  963. afpAlreadyMounted                EQU        -5062                ; The volume is already mounted 
  964. afpSameNodeErr                    EQU        -5063                ; An Attempt was made to connect to a file server running on the same machine 
  965.  
  966.  
  967. ; Text Engines, TSystemTextEngines, HIEditText error coded
  968.  
  969.  
  970. errUnknownAttributeTag            EQU        -5240
  971. errMarginWilllNotFit            EQU        -5241
  972. errNotInImagingMode                EQU        -5242
  973. errAlreadyInImagingMode            EQU        -5243
  974. errEngineNotFound                EQU        -5244
  975. errIteratorReachedEnd            EQU        -5245
  976. errInvalidRange                    EQU        -5246
  977. errOffsetNotOnElementBounday    EQU        -5247
  978. errNoHiliteText                    EQU        -5248
  979. errEmptyScrap                    EQU        -5249
  980. errReadOnlyText                    EQU        -5250
  981. errUnknownElement                EQU        -5251
  982. errNonContiuousAttribute        EQU        -5252
  983. errCannotUndo                    EQU        -5253
  984.  
  985.  
  986.                                                             ;Gestalt error codes
  987. gestaltUnknownErr                EQU        -5550                ;value returned if Gestalt doesn't know the answer
  988. gestaltUndefSelectorErr            EQU        -5551                ;undefined selector was passed to Gestalt
  989. gestaltDupSelectorErr            EQU        -5552                ;tried to add an entry that already existed
  990. gestaltLocationErr                EQU        -5553                ;gestalt function ptr wasn't in sysheap
  991.  
  992.  
  993. ;  Collection Manager errors 
  994.  
  995. collectionItemLockedErr            EQU        -5750
  996. collectionItemNotFoundErr        EQU        -5751
  997. collectionIndexRangeErr            EQU        -5752
  998. collectionVersionErr            EQU        -5753
  999.  
  1000.  
  1001.                                                             ; Display Manager error codes (-6220...-6269)
  1002. kDMGenErr                        EQU        -6220                ;Unexpected Error
  1003.                                                             ; Mirroring-Specific Errors 
  1004. kDMMirroringOnAlready            EQU        -6221                ;Returned by all calls that need mirroring to be off to do their thing.
  1005. kDMWrongNumberOfDisplays        EQU        -6222                ;Can only handle 2 displays for now.
  1006. kDMMirroringBlocked                EQU        -6223                ;DMBlockMirroring() has been called.
  1007. kDMCantBlock                    EQU        -6224                ;Mirroring is already on, can’t Block now (call DMUnMirror() first).
  1008. kDMMirroringNotOn                EQU        -6225                ;Returned by all calls that need mirroring to be on to do their thing.
  1009.                                                             ; Other Display Manager Errors 
  1010. kSysSWTooOld                    EQU        -6226                ;Missing critical pieces of System Software.
  1011. kDMSWNotInitializedErr            EQU        -6227                ;Required software not initialized (eg windowmanager or display mgr).
  1012. kDMDriverNotDisplayMgrAwareErr    EQU        -6228                ;Video Driver does not support display manager.
  1013. kDMDisplayNotFoundErr            EQU        -6229                ;Could not find item (will someday remove).
  1014. kDMNotFoundErr                    EQU        -6229                ;Could not find item.
  1015. kDMDisplayAlreadyInstalledErr    EQU        -6230                ;Attempt to add an already installed display.
  1016. kDMMainDisplayCannotMoveErr        EQU        -6231                ;Trying to move main display (or a display mirrored to it) 
  1017. kDMNoDeviceTableclothErr        EQU        -6231                ;obsolete
  1018. kDMFoundErr                        EQU        -6232                ;Did not proceed because we found an item
  1019.  
  1020. ;  Error & status codes for general text and text encoding conversion
  1021.  
  1022.  
  1023.                                                             ; general text errors
  1024. kTextUnsupportedEncodingErr        EQU        -8738                ; specified encoding not supported for this operation
  1025. kTextMalformedInputErr            EQU        -8739                ; in DBCS, for example, high byte followed by invalid low byte
  1026. kTextUndefinedElementErr        EQU        -8740                ; text conversion errors
  1027. kTECMissingTableErr                EQU        -8745
  1028. kTECTableChecksumErr            EQU        -8746
  1029. kTECTableFormatErr                EQU        -8747
  1030. kTECCorruptConverterErr            EQU        -8748                ; invalid converter object reference
  1031. kTECNoConversionPathErr            EQU        -8749
  1032. kTECBufferBelowMinimumSizeErr    EQU        -8750                ; output buffer too small to allow processing of first input text element
  1033. kTECArrayFullErr                EQU        -8751                ; supplied name buffer or TextRun, TextEncoding, or UnicodeMapping array is too small
  1034. kTECBadTextRunErr                EQU        -8752
  1035. kTECPartialCharErr                EQU        -8753                ; input buffer ends in the middle of a multibyte character, conversion stopped
  1036. kTECUnmappableElementErr        EQU        -8754
  1037. kTECIncompleteElementErr        EQU        -8755                ; text element may be incomplete or is too long for internal buffers
  1038. kTECDirectionErr                EQU        -8756                ; direction stack overflow, etc.
  1039. kTECGlobalsUnavailableErr        EQU        -8770                ; globals have already been deallocated (premature TERM)
  1040. kTECItemUnavailableErr            EQU        -8771                ; item (e.g. name) not available for specified region (& encoding if relevant)
  1041.                                                             ; text conversion status codes
  1042. kTECUsedFallbacksStatus            EQU        -8783
  1043. kTECNeedFlushStatus                EQU        -8784
  1044. kTECOutputBufferFullStatus        EQU        -8785                ; output buffer has no room for conversion of next input text element (partial conversion)
  1045.                                                             ; deprecated error & status codes for low-level converter
  1046. unicodeChecksumErr                EQU        -8769
  1047. unicodeNoTableErr                EQU        -8768
  1048. unicodeVariantErr                EQU        -8767
  1049. unicodeFallbacksErr                EQU        -8766
  1050. unicodePartConvertErr            EQU        -8765
  1051. unicodeBufErr                    EQU        -8764
  1052. unicodeCharErr                    EQU        -8763
  1053. unicodeElementErr                EQU        -8762
  1054. unicodeNotFoundErr                EQU        -8761
  1055. unicodeTableFormatErr            EQU        -8760
  1056. unicodeDirectionErr                EQU        -8759
  1057. unicodeContextualErr            EQU        -8758
  1058. unicodeTextEncodingDataErr        EQU        -8757
  1059.  
  1060.  
  1061.  
  1062. codecErr                        EQU        -8960
  1063. noCodecErr                        EQU        -8961
  1064. codecUnimpErr                    EQU        -8962
  1065. codecSizeErr                    EQU        -8963
  1066. codecScreenBufErr                EQU        -8964
  1067. codecImageBufErr                EQU        -8965
  1068. codecSpoolErr                    EQU        -8966
  1069. codecAbortErr                    EQU        -8967
  1070. codecWouldOffscreenErr            EQU        -8968
  1071. codecBadDataErr                    EQU        -8969
  1072. codecDataVersErr                EQU        -8970
  1073. codecExtensionNotFoundErr        EQU        -8971
  1074. scTypeNotFoundErr                EQU        -8971
  1075. codecConditionErr                EQU        -8972
  1076. codecOpenErr                    EQU        -8973
  1077. codecCantWhenErr                EQU        -8974
  1078. codecCantQueueErr                EQU        -8975
  1079. codecNothingToBlitErr            EQU        -8976
  1080. codecNoMemoryPleaseWaitErr        EQU        -8977
  1081. codecDisabledErr                EQU        -8978                ; codec disabled itself -- pass codecFlagReenable to reset
  1082. codecNeedToFlushChainErr        EQU        -8979
  1083. lockPortBitsBadSurfaceErr        EQU        -8980
  1084. lockPortBitsWindowMovedErr        EQU        -8981
  1085. lockPortBitsWindowResizedErr    EQU        -8982
  1086. lockPortBitsWindowClippedErr    EQU        -8983
  1087. lockPortBitsBadPortErr            EQU        -8984
  1088. lockPortBitsSurfaceLostErr        EQU        -8985
  1089. codecParameterDialogConfirm        EQU        -8986
  1090. codecNeedAccessKeyErr            EQU        -8987                ; codec needs password in order to decompress
  1091. codecOffscreenFailedErr            EQU        -8988
  1092. codecDroppedFrameErr            EQU        -8989                ; returned from ImageCodecDrawBand 
  1093.  
  1094. noDeviceForChannel                EQU        -9400
  1095. grabTimeComplete                EQU        -9401
  1096. cantDoThatInCurrentMode            EQU        -9402
  1097. notEnoughMemoryToGrab            EQU        -9403
  1098. notEnoughDiskSpaceToGrab        EQU        -9404
  1099. couldntGetRequiredComponent        EQU        -9405
  1100. badSGChannel                    EQU        -9406
  1101. seqGrabInfoNotAvailable            EQU        -9407
  1102. deviceCantMeetRequest            EQU        -9408
  1103. badControllerHeight                EQU        -9994
  1104. editingNotAllowed                EQU        -9995
  1105. controllerBoundsNotExact        EQU        -9996
  1106. cannotSetWidthOfAttachedController EQU    -9997
  1107. controllerHasFixedHeight        EQU        -9998
  1108. cannotMoveAttachedController    EQU        -9999
  1109. ;  AERegistry Errors 
  1110.  
  1111. errAEBadKeyForm                    EQU        -10002
  1112. errAECantHandleClass            EQU        -10010
  1113. errAECantSupplyType                EQU        -10009
  1114. errAECantUndo                    EQU        -10015
  1115. errAEEventFailed                EQU        -10000
  1116. errAEIndexTooLarge                EQU        -10007
  1117. errAEInTransaction                EQU        -10011
  1118. errAELocalOnly                    EQU        -10016
  1119. errAENoSuchTransaction            EQU        -10012
  1120. errAENotAnElement                EQU        -10008
  1121. errAENotASingleObject            EQU        -10014
  1122. errAENotModifiable                EQU        -10003
  1123. errAENoUserSelection            EQU        -10013
  1124. errAEPrivilegeError                EQU        -10004
  1125. errAEReadDenied                    EQU        -10005
  1126. errAETypeError                    EQU        -10001
  1127. errAEWriteDenied                EQU        -10006
  1128. errAENotAnEnumMember            EQU        -10023                ; enumerated value in SetData is not allowed for this property 
  1129. errAECantPutThatThere            EQU        -10024                ; in make new, duplicate, etc. class can't be an element of container 
  1130. errAEPropertiesClash            EQU        -10025                ; illegal combination of properties settings for Set Data, make new, or duplicate 
  1131. ;  TELErr 
  1132.  
  1133. telGenericError                    EQU        -1
  1134. telNoErr                        EQU        0
  1135. telNoTools                        EQU        8                    ; no telephone tools found in extension folder 
  1136. telBadTermErr                    EQU        -10001                ; invalid TELHandle or handle not found
  1137. telBadDNErr                        EQU        -10002                ; TELDNHandle not found or invalid 
  1138. telBadCAErr                        EQU        -10003                ; TELCAHandle not found or invalid 
  1139. telBadHandErr                    EQU        -10004                ; bad handle specified 
  1140. telBadProcErr                    EQU        -10005                ; bad msgProc specified 
  1141. telCAUnavail                    EQU        -10006                ; a CA is not available 
  1142. telNoMemErr                        EQU        -10007                ; no memory to allocate handle 
  1143. telNoOpenErr                    EQU        -10008                ; unable to open terminal 
  1144. telBadHTypeErr                    EQU        -10010                ; bad hook type specified 
  1145. telHTypeNotSupp                    EQU        -10011                ; hook type not supported by this tool 
  1146. telBadLevelErr                    EQU        -10012                ; bad volume level setting 
  1147. telBadVTypeErr                    EQU        -10013                ; bad volume type error 
  1148. telVTypeNotSupp                    EQU        -10014                ; volume type not supported by this tool
  1149. telBadAPattErr                    EQU        -10015                ; bad alerting pattern specified 
  1150. telAPattNotSupp                    EQU        -10016                ; alerting pattern not supported by tool
  1151. telBadIndex                        EQU        -10017                ; bad index specified 
  1152. telIndexNotSupp                    EQU        -10018                ; index not supported by this tool 
  1153. telBadStateErr                    EQU        -10019                ; bad device state specified 
  1154. telStateNotSupp                    EQU        -10020                ; device state not supported by tool 
  1155. telBadIntExt                    EQU        -10021                ; bad internal external error 
  1156. telIntExtNotSupp                EQU        -10022                ; internal external type not supported by this tool 
  1157. telBadDNDType                    EQU        -10023                ; bad DND type specified 
  1158. telDNDTypeNotSupp                EQU        -10024                ; DND type is not supported by this tool 
  1159. telFeatNotSub                    EQU        -10030                ; feature not subscribed 
  1160. telFeatNotAvail                    EQU        -10031                ; feature subscribed but not available 
  1161. telFeatActive                    EQU        -10032                ; feature already active 
  1162. telFeatNotSupp                    EQU        -10033                ; feature program call not supported by this tool 
  1163. telConfLimitErr                    EQU        -10040                ; limit specified is too high for this configuration 
  1164. telConfNoLimit                    EQU        -10041                ; no limit was specified but required
  1165. telConfErr                        EQU        -10042                ; conference was not prepared 
  1166. telConfRej                        EQU        -10043                ; conference request was rejected 
  1167. telTransferErr                    EQU        -10044                ; transfer not prepared 
  1168. telTransferRej                    EQU        -10045                ; transfer request rejected 
  1169. telCBErr                        EQU        -10046                ; call back feature not set previously 
  1170. telConfLimitExceeded            EQU        -10047                ; attempt to exceed switch conference limits 
  1171. telBadDNType                    EQU        -10050                ; DN type invalid 
  1172. telBadPageID                    EQU        -10051                ; bad page ID specified
  1173. telBadIntercomID                EQU        -10052                ; bad intercom ID specified 
  1174. telBadFeatureID                    EQU        -10053                ; bad feature ID specified 
  1175. telBadFwdType                    EQU        -10054                ; bad fwdType specified 
  1176. telBadPickupGroupID                EQU        -10055                ; bad pickup group ID specified 
  1177. telBadParkID                    EQU        -10056                ; bad park id specified 
  1178. telBadSelect                    EQU        -10057                ; unable to select or deselect DN 
  1179. telBadBearerType                EQU        -10058                ; bad bearerType specified 
  1180. telBadRate                        EQU        -10059                ; bad rate specified 
  1181. telDNTypeNotSupp                EQU        -10060                ; DN type not supported by tool 
  1182. telFwdTypeNotSupp                EQU        -10061                ; forward type not supported by tool 
  1183. telBadDisplayMode                EQU        -10062                ; bad display mode specified 
  1184. telDisplayModeNotSupp            EQU        -10063                ; display mode not supported by tool 
  1185. telNoCallbackRef                EQU        -10064                ; no call back reference was specified, but is required 
  1186. telAlreadyOpen                    EQU        -10070                ; terminal already open 
  1187. telStillNeeded                    EQU        -10071                ; terminal driver still needed by someone else 
  1188. telTermNotOpen                    EQU        -10072                ; terminal not opened via TELOpenTerm 
  1189. telCANotAcceptable                EQU        -10080                ; CA not "acceptable" 
  1190. telCANotRejectable                EQU        -10081                ; CA not "rejectable" 
  1191. telCANotDeflectable                EQU        -10082                ; CA not "deflectable" 
  1192. telPBErr                        EQU        -10090                ; parameter block error, bad format 
  1193. telBadFunction                    EQU        -10091                ; bad msgCode specified 
  1194.                                                             ;    telNoTools            = -10101,           unable to find any telephone tools 
  1195. telNoSuchTool                    EQU        -10102                ; unable to find tool with name specified 
  1196. telUnknownErr                    EQU        -10103                ; unable to set config 
  1197. telNoCommFolder                    EQU        -10106                ; Communications/Extensions ƒ not found 
  1198. telInitFailed                    EQU        -10107                ; initialization failed 
  1199. telBadCodeResource                EQU        -10108                ; code resource not found 
  1200. telDeviceNotFound                EQU        -10109                ; device not found 
  1201. telBadProcID                    EQU        -10110                ; invalid procID 
  1202. telValidateFailed                EQU        -10111                ; telValidate failed 
  1203. telAutoAnsNotOn                    EQU        -10112                ; autoAnswer in not turned on 
  1204. telDetAlreadyOn                    EQU        -10113                ; detection is already turned on 
  1205. telBadSWErr                        EQU        -10114                ; Software not installed properly 
  1206. telBadSampleRate                EQU        -10115                ; incompatible sample rate 
  1207. telNotEnoughdspBW                EQU        -10116                ; not enough real-time for allocation 
  1208.  
  1209.  
  1210.                                                             ;Power Manager Errors
  1211. pmBusyErr                        EQU        -13000                ;Power Mgr never ready to start handshake
  1212. pmReplyTOErr                    EQU        -13001                ;Timed out waiting for reply
  1213. pmSendStartErr                    EQU        -13002                ;during send, pmgr did not start hs
  1214. pmSendEndErr                    EQU        -13003                ;during send, pmgr did not finish hs
  1215. pmRecvStartErr                    EQU        -13004                ;during receive, pmgr did not start hs
  1216. pmRecvEndErr                    EQU        -13005                ;during receive, pmgr did not finish hs configured for this connection
  1217. ; Possible errors from the PrinterStatus bottleneck
  1218.  
  1219. printerStatusOpCodeNotSupportedErr EQU    -25280
  1220. ;  UnicodeUtilities error & status codes
  1221.  
  1222. kUCOutputBufferTooSmall            EQU        -25340                ; Output buffer too small for Unicode string result
  1223. ;  MP (multiprocessor API) error codes
  1224.  
  1225. kMPBlueBlockingErr                EQU        -29293
  1226. kMPNanokernelNeedsMemoryErr        EQU        -29294
  1227. kMPDeletedErr                    EQU        -29295
  1228. kMPTimeoutErr                    EQU        -29296
  1229. kMPTaskAbortedErr                EQU        -29297
  1230. kMPInsufficientResourcesErr        EQU        -29298
  1231. kMPInvalidIDErr                    EQU        -29299
  1232.  
  1233. ;  StringCompare error codes (in TextUtils range)
  1234.  
  1235. kCollateAttributesNotFoundErr    EQU        -29500
  1236. kCollateInvalidOptions            EQU        -29501
  1237. kCollateMissingUnicodeTableErr    EQU        -29502
  1238. kCollateUnicodeConvertFailedErr    EQU        -29503
  1239. kCollatePatternNotFoundErr        EQU        -29504
  1240. kCollateInvalidChar                EQU        -29505
  1241. kCollateBufferTooSmall            EQU        -29506
  1242. kCollateInvalidCollationRef        EQU        -29507
  1243.  
  1244. ;  TextObjects error codes
  1245.  
  1246. textObjInvalidIndexErr            EQU        -29580
  1247. textObjBufferTooSmallErr        EQU        -29581
  1248. textObjObjectTooSmallErr        EQU        -29582
  1249. textObjTextConversionFailedErr    EQU        -29583
  1250. textObjMalformedObjectErr        EQU        -29584
  1251. textObjAnnotationNotFoundErr    EQU        -29585
  1252. textObjMoreAnnotationsErr        EQU        -29586
  1253. textObjLanguageChangedErr        EQU        -29587
  1254. textObjFontNotFoundErr            EQU        -29599
  1255. ;  Locale Object Mgr errors
  1256.  
  1257. localeNotFoundErr                EQU        -30001
  1258. localeObjectAttributeNotAvailErr EQU    -30002
  1259. localeObjectNoNamesTableErr        EQU        -30005
  1260. localeBadReferenceErr            EQU        -30006
  1261. localeObjectNotFoundErr            EQU        -30007
  1262. localeObjectInvalidReferenceErr    EQU        -30008
  1263. localeObjectItemFoundIsLastErr    EQU        -30009
  1264. localeObjectNameAttributeConflictErr EQU -30010
  1265. localeObjectInvalidIteratorErr    EQU        -30020
  1266. localeObjectNoNameErr            EQU        -30021
  1267. localeObjectTagDataNotFoundErr    EQU        -30022
  1268. localeObjectCannotDeleteSystemObjectErr EQU -30023
  1269. localeCouldNotWriteLinkedObjectsErr EQU    -30024
  1270. localeDuplicateErr                EQU        -30025
  1271. localeObjectDefaultValueNotAvailableErr EQU -30026
  1272. localeNoAssociatedDataTagsErr    EQU        -30027
  1273. ;  Settings Manager (formerly known as Location Manager) Errors 
  1274.  
  1275. kALMInternalErr                    EQU        -30049
  1276. kALMGroupNotFoundErr            EQU        -30048
  1277. kALMNoSuchModuleErr                EQU        -30047
  1278. kALMModuleCommunicationErr        EQU        -30046
  1279. kALMDuplicateModuleErr            EQU        -30045
  1280. kALMInstallationErr                EQU        -30044
  1281. kALMDeferSwitchErr                EQU        -30043
  1282. kALMRebootFlagsLevelErr            EQU        -30042
  1283.  
  1284. kALMLocationNotFoundErr            EQU        -30048                ; Old name 
  1285. ;  QuickTime VR Errors 
  1286.  
  1287. notAQTVRMovieErr                EQU        -30540
  1288. constraintReachedErr            EQU        -30541
  1289. callNotSupportedByNodeErr        EQU        -30542
  1290. selectorNotSupportedByNodeErr    EQU        -30543
  1291. invalidNodeIDErr                EQU        -30544
  1292. invalidViewStateErr                EQU        -30545
  1293. timeNotInViewErr                EQU        -30546
  1294. propertyNotSupportedByNodeErr    EQU        -30547
  1295. settingNotSupportedByNodeErr    EQU        -30548
  1296. limitReachedErr                    EQU        -30549
  1297. invalidNodeFormatErr            EQU        -30550
  1298. invalidHotSpotIDErr                EQU        -30551
  1299. noMemoryNodeFailedInitialize    EQU        -30552
  1300. streamingNodeNotReadyErr        EQU        -30553
  1301.  
  1302.  
  1303. badComponentInstance            EQU        $80008001
  1304. badComponentSelector            EQU        $80008002
  1305.  
  1306.  
  1307.  
  1308. dsBusError                        EQU        1                    ;bus error
  1309. dsAddressErr                    EQU        2                    ;address error
  1310. dsIllInstErr                    EQU        3                    ;illegal instruction error
  1311. dsZeroDivErr                    EQU        4                    ;zero divide error
  1312. dsChkErr                        EQU        5                    ;check trap error
  1313. dsOvflowErr                        EQU        6                    ;overflow trap error
  1314. dsPrivErr                        EQU        7                    ;privilege violation error
  1315. dsTraceErr                        EQU        8                    ;trace mode error
  1316. dsLineAErr                        EQU        9                    ;line 1010 trap error
  1317. dsLineFErr                        EQU        10                    ;line 1111 trap error
  1318. dsMiscErr                        EQU        11                    ;miscellaneous hardware exception error
  1319. dsCoreErr                        EQU        12                    ;unimplemented core routine error
  1320. dsIrqErr                        EQU        13                    ;uninstalled interrupt error
  1321. dsIOCoreErr                        EQU        14                    ;IO Core Error
  1322. dsLoadErr                        EQU        15                    ;Segment Loader Error
  1323. dsFPErr                            EQU        16                    ;Floating point error
  1324. dsNoPackErr                        EQU        17                    ;package 0 not present
  1325. dsNoPk1                            EQU        18                    ;package 1 not present
  1326. dsNoPk2                            EQU        19                    ;package 2 not present
  1327.  
  1328. dsNoPk3                            EQU        20                    ;package 3 not present
  1329. dsNoPk4                            EQU        21                    ;package 4 not present
  1330. dsNoPk5                            EQU        22                    ;package 5 not present
  1331. dsNoPk6                            EQU        23                    ;package 6 not present
  1332. dsNoPk7                            EQU        24                    ;package 7 not present
  1333. dsMemFullErr                    EQU        25                    ;out of memory!
  1334. dsBadLaunch                        EQU        26                    ;can't launch file
  1335. dsFSErr                            EQU        27                    ;file system map has been trashed
  1336. dsStknHeap                        EQU        28                    ;stack has moved into application heap
  1337. negZcbFreeErr                    EQU        33                    ;ZcbFree has gone negative
  1338. dsFinderErr                        EQU        41                    ;can't load the Finder error
  1339. dsBadSlotInt                    EQU        51                    ;unserviceable slot interrupt
  1340. dsBadSANEOpcode                    EQU        81                    ;bad opcode given to SANE Pack4
  1341. dsBadPatchHeader                EQU        83                    ;SetTrapAddress saw the “come-from” header
  1342. menuPrgErr                        EQU        84                    ;happens when a menu is purged
  1343. dsMBarNFnd                        EQU        85                    ;Menu Manager Errors
  1344. dsHMenuFindErr                    EQU        86                    ;Menu Manager Errors
  1345. dsWDEFNotFound                    EQU        87                    ;could not load WDEF
  1346. dsCDEFNotFound                    EQU        88                    ;could not load CDEF
  1347. dsMDEFNotFound                    EQU        89                    ;could not load MDEF
  1348.  
  1349. dsNoFPU                            EQU        90                    ;an FPU instruction was executed and the machine doesn’t have one
  1350. dsNoPatch                        EQU        98                    ;Can't patch for particular Model Mac
  1351. dsBadPatch                        EQU        99                    ;Can't load patch resource
  1352. dsParityErr                        EQU        101                    ;memory parity error
  1353. dsOldSystem                        EQU        102                    ;System is too old for this ROM
  1354. ds32BitMode                        EQU        103                    ;booting in 32-bit on a 24-bit sys
  1355. dsNeedToWriteBootBlocks            EQU        104                    ;need to write new boot blocks
  1356. dsNotEnoughRAMToBoot            EQU        105                    ;must have at least 1.5MB of RAM to boot 7.0
  1357. dsBufPtrTooLow                    EQU        106                    ;bufPtr moved too far during boot
  1358. dsVMDeferredFuncTableFull        EQU        112                    ;VM's DeferUserFn table is full
  1359. dsVMBadBackingStore                EQU        113                    ;Error occurred while reading or writing the VM backing-store file
  1360. dsCantHoldSystemHeap            EQU        114                    ;Unable to hold the system heap during boot
  1361. dsSystemRequiresPowerPC            EQU        116                    ;Startup disk requires PowerPC
  1362. dsGibblyMovedToDisabledFolder    EQU        117                    ; For debug builds only, signals that active gibbly was disabled during boot. 
  1363. dsUnBootableSystem                EQU        118                    ; Active system file will not boot on this system because it was designed only to boot from a CD. 
  1364. dsWriteToSupervisorStackGuardPage EQU    128                    ;the supervisor stack overflowed into its guard page 
  1365. dsReinsert                        EQU        30                    ;request user to reinsert off-line volume
  1366. shutDownAlert                    EQU        42                    ;handled like a shutdown error
  1367. dsShutDownOrRestart                EQU        20000                ;user choice between ShutDown and Restart
  1368. dsSwitchOffOrRestart            EQU        20001                ;user choice between switching off and Restart
  1369. dsForcedQuit                    EQU        20002                ;allow the user to ExitToShell, return if Cancel
  1370. dsRemoveDisk                    EQU        20003                ;request user to remove disk from manual eject drive
  1371. dsDirtyDisk                        EQU        20004                ;request user to return a manually-ejected dirty disk
  1372. dsShutDownOrResume                EQU        20109                ;allow user to return to Finder or ShutDown
  1373. dsSCSIWarn                        EQU        20010                ;Portable SCSI adapter warning.
  1374. dsMBSysError                    EQU        29200                ;Media Bay replace warning.
  1375. dsMBFlpySysError                EQU        29201                ;Media Bay, floppy replace warning.
  1376. dsMBATASysError                    EQU        29202                ;Media Bay, ATA replace warning.
  1377. dsMBATAPISysError                EQU        29203                ;Media Bay, ATAPI replace warning...
  1378. dsMBExternFlpySysError            EQU        29204                ;Media Bay, external floppy drive reconnect warning
  1379.  
  1380. ;      System Errors that are used after MacsBug is loaded to put up dialogs since these should not 
  1381. ;      cause MacsBug to stop, they must be in the range (30, 42, 16384-32767) negative numbers add 
  1382. ;      to an existing dialog without putting up a whole new dialog 
  1383.  
  1384.  
  1385.  
  1386. dsNoExtsMacsBug                    EQU        -1                    ;not a SysErr, just a placeholder 
  1387. dsNoExtsDisassembler            EQU        -2                    ;not a SysErr, just a placeholder 
  1388. dsMacsBugInstalled                EQU        -10                    ;say “MacsBug Installed”
  1389. dsDisassemblerInstalled            EQU        -11                    ;say “Disassembler Installed”
  1390. dsExtensionsDisabled            EQU        -13                    ;say “Extensions Disabled”
  1391. dsGreeting                        EQU        40                    ;welcome to Macintosh greeting
  1392. dsSysErr                        EQU        32767                ;general system error
  1393.                                                             ;old names here for compatibility’s sake
  1394. WDEFNFnd                        EQU        87
  1395.  
  1396. CDEFNFnd                        EQU        88
  1397. dsNotThe1                        EQU        31                    ;not the disk I wanted
  1398. dsBadStartupDisk                EQU        42                    ;unable to mount boot volume (sad Mac only)
  1399. dsSystemFileErr                    EQU        43                    ;can’t find System file to open (sad Mac only)
  1400. dsHD20Installed                    EQU        -12                    ;say “HD20 Startup”
  1401. mBarNFnd                        EQU        -126                ;system error code for MBDF not found
  1402. hMenuFindErr                    EQU        -127                ;could not find HMenu's parent in MenuKey
  1403. userBreak                        EQU        -490                ;user debugger break
  1404. strUserBreak                    EQU        -491                ;user debugger break; display string on stack
  1405. exUserBreak                        EQU        -492                ;user debugger break; execute debugger commands on stack
  1406.  
  1407.  
  1408.                                                             ; DS Errors which are specific to the new runtime model introduced with PowerPC 
  1409. dsBadLibrary                    EQU        1010                ; Bad shared library 
  1410. dsMixedModeFailure                EQU        1011                ; Internal Mixed Mode Failure 
  1411.  
  1412. ;
  1413. ; pascal void SysError(short errorCode)
  1414. ;
  1415.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1416.         ; parameters:
  1417.         ;    errorCode       => D0
  1418.         _SysError:    OPWORD    $A9C9
  1419.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1420.         IMPORT_CFM_FUNCTION SysError
  1421.     ENDIF
  1422.  
  1423.  
  1424.  
  1425.     ENDIF ; __ERRORS__ 
  1426.  
  1427.